import Home from '../views/Home/Home/index'
import IndexLayout from '../views/Layout/index'
import SlideShow from '../views/Home/SlideShowList'
import SlideAdd from '../views/Home/SlideAdd'
import MusicList from '../views/Home/MusicList'
import MusicAdd from '../views/Home/MusicAdd'
import CommentList from '../views/Home/CommentList'
import Register from '../views/Register'
import Login from '../views/Login'

const routes = [
    {
        path: '/register',
        component: Register,
    },
    {
        path: '/login',
        component: Login,
    },
    {
        path: '/',
        component: IndexLayout,
        type: 'route',
        children: [
            {
                from: '/',
                to: '/slide',
            },
            {
                path: '/home',
                component: Home,
            },
            {
                path: '/slide',
                component: SlideShow,
            },
            {
                path: '/addSlide',
                component: SlideAdd,
            },
            {
                path: '/music',
                component: MusicList,
            },
            {
                path: '/addMusic',
                component: MusicAdd,
            },
            {
                path: '/comment',
                component: CommentList,
            }
        ],
    },
]
export default routes
